import urllib

URL_NAME="localhost:8080"
params = urllib.urlencode({"number":121});
doc = urllib.urlopen("http://localhost:8080/springmvc/myjsp.htm?number=1212",params)
print doc.read();



import httplib
conn = httplib.HTTPConnection(URL_NAME);
conn.request("POST","/springmvc/myjsp.htm?number=1213",params);
response = conn.getresponse();

print response.read();


conn = httplib.HTTPConnection(URL_NAME);
conn.request("GET","/springmvc/myjsp.htm?number=1213");
response = conn.getresponse();

print response.read();


conn = httplib.HTTPConnection(URL_NAME);
conn.request("DELETE","/springmvc/myjsp.htm?number=1213");
response = conn.getresponse();

print response.read();


conn = httplib.HTTPConnection(URL_NAME);
conn.request("PUT","/springmvc/myjsp.htm?number=1213");
response = conn.getresponse();

print response.read();
